export default class BeanNginxService{
	constructor(sid,sname,listenid,listenip,listenport,fontendid,fontendip,fontendport,backendid,backendip,backendport,supportxlsx)
	{
//		console.info('class BeanNginxService init');
		this._sId = sid;
		this._sName = sname;
		this._sListenId = listenid;
		this._sListenIp = listenip;
		this._sListenPort = listenport;
		this._sFontEndId = fontendid;
		this._sFontEndIp = fontendip;
		this._sFontEndPort = fontendport;
		this._sBackEndId = backendid;
		this._sBackEndIp = backendip;
		this._sBackEndPort = backendport;
		this._sSupportXlsx = supportxlsx;
		return this;
	}
	
	clear()
	{
		this._sId = null;
		this._sName = null;
		this._sListenId = null;
		this._sListenIp = null;
		this._sListenPort = null;
		this._sFontEndId = null;
		this._sFontEndIp = null;
		this._sFontEndPort = null;
		this._sBackEndId = null;
		this._sBackEndIp = null;
		this._sBackEndPort = null;
		this._sSupportXlsx = false;
	}
	
	msg()
	{
		console.info('{class BeanNginxService msg}[id]' + this._sId + "[name]" + this._sName 
				+ "[listenId]" + this._sListenId + "[listenIp]" + this._sListenIp + "[ListenPort]" + this._sListenPort 
				+ "[fontEndId]" + this._sFontEndId + "[fontEndIp]" + this._sFontEndIp + "[fontEndPort]" + this._sFontEndPort 
				+ "[BackEndId]" + this._sBackEndId + "[BackEndIp]" + this._sBackEndIp + "[BackEndPort]" + this._sBackEndPort
				+ "[SupportXlsx]" + this._sSupportXlsx);
	}
	
    get sId(){
    	return this._sId;
	}
    set sId(val){
	    this._sId = val;
	}
    get sName(){
    	return this._sName;
    }
    set sName(val){
    	this._sName = val;
    }
	get sListenId (){
		return this._sListenId;
	}
	set sListenId (val){
		this._sListenId = val;
	}
    get sListenIp(){
    	return this._sListenIp;
    }
    set sListenIp(val){
    	this._sListenIp = val;
    }
    get sListenPort(){
    	return this._sListenPort;
    }
    set sListenPort(val){
    	this._sListenPort = val;
    }
    get sFontEndId(){
    	return this._sFontEndId;
    }
    set sFontEndId(val){
    	this._sFontEndId = val;
    }
    get sFontEndIp(){
    	return this._sFontEndIp;
    }
    set sFontEndIp(val){
    	this._sFontEndIp = val;
    }
    get sFontEndPort(){
    	return this._sFontEndPort;
    }
    set sFontEndPort(val){
    	this._sFontEndPort = val;
    }
    get sBackEndId(){
    	return this._sBackEndId;
    }
    set sBackEndId(val){
    	this._sBackEndId = val;
    }
    get sBackEndIp(){
    	return this._sBackEndIp;
    }
    set sBackEndIp(val){
    	this._sBackEndIp = val;
    }
    get sBackEndPort(){
    	return this._sBackEndPort;
    }
    set sBackEndPort(val){
    	this._sBackEndPort = val;
    }
    get sSupportXlsx(){
    	return this._sSupportXlsx;
    }
    set sSupportXlsx(val){
    	if (val) {
    		this._sSupportXlsx = true;
		} else {
			this._sSupportXlsx = false;
		}
    }
}